package com.yzd.learnjava.holding;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;

import com.yzd.learnjava.util.Print;
/*
 * Foreach
 */
public class ForeachCollections {

	public static void main(String[] args) {
		Collection<String> c = new LinkedList<String>();
		Collections.addAll(c, "Take the long home".split(" "));
		for(String s : c) {
			Print.printnb("'" + s + "' ");
		}
	}

}
